import { http } from "../../http";

// 库存管理-借调单分页查询
export function listBorrowPage(data: object) {
  return http({ url: "/loan/listPage", data });
}
//借调单删除
export function DeleteBorrow(data: object) {
  return http({ url: "/loan/delete", data });
}
/**************************借调单新增详情页***********************/
// 物资管理分页
export function goodsListPage(data: object) {
  return http({ url: "/api/listGodownGoodsPage", data });
}
// 借调单新增
export function AddBorrow(data: object) {
  return http({ url: "/loan/save", data });
}
// 借调单修改
export function UpdateBorrow(data: object) {
  return http({ url: "/loan/update", data });
}
//借调单查询详情
export function getBorrowDetail(data: object) {
  return http({ url: "/loan/find", data });
}
//借调单提交
export function submitBorrow(data: object) {
  return http({ url: "/loan/BorrowSubmit", data });
}

// 批量添加借调单物资
export function saveBatchBorrowGoods(data: object) {
  return http({ url: "/loan/addGoods", data });
}
// 借调单物资列表
export function getAddGoodsList(data: object) {
  return http({ url: "/loan/listGoodsPage", data });
}
